package com.itheima.service;

import com.alibaba.druid.pool.DruidDataSource;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class DruidService {
    public static void main(String[] args) {
        ApplicationContext context = new ClassPathXmlApplicationContext("spring-day01/src/main/resources/appliction-druid.xml");
        DruidDataSource dataSource = (DruidDataSource) context.getBean("dataSource");
        System.out.println(dataSource.isClosed());
    }
}
